package com.ruoyi.finance.livestreaming.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 数字直播代理等级升级记录
 * </p>
 *
 * @author wangmh
 * @since 2023-09-24
 */
@TableName("sz_vip_upgrade_record")
@ApiModel(value = "SzVipUpgradeRecord对象", description = "数字直播代理等级升级记录")
public class SzVipUpgradeRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("升级时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("升级等级")
    @TableField("vip_id")
    private Long vipId;

    @ApiModelProperty("距离上一次升级/天")
    @TableField("elapsed_day")
    private Integer elapsedDay;


    @ApiModelProperty("升级前的等级")
    @TableField("beforeVip")
    private Long beforeVip;

    @ApiModelProperty("操作人")
    @TableField("create_user")
    private Long create_user;

    public Long getBeforeVip() {
        return beforeVip;
    }

    public void setBeforeVip(Long beforeVip) {
        this.beforeVip = beforeVip;
    }

    public Long getCreate_user() {
        return create_user;
    }

    public void setCreate_user(Long create_user) {
        this.create_user = create_user;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Long getVipId() {
        return vipId;
    }

    public void setVipId(Long vipId) {
        this.vipId = vipId;
    }
    public Integer getElapsedDay() {
        return elapsedDay;
    }

    public void setElapsedDay(Integer elapsedDay) {
        this.elapsedDay = elapsedDay;
    }

    @Override
    public String toString() {
        return "SzVipUpgradeRecord{" +
            "id=" + id +
            ", userId=" + userId +
            ", createTime=" + createTime +
            ", vipId=" + vipId +
            ", elapsedDay=" + elapsedDay +
        "}";
    }
}
